package thread;

import java.io.FileInputStream;
import java.io.FileOutputStream;

public class CopyThread extends Thread{
	@Override
	public void run(){
		try{
			FileInputStream fis = new FileInputStream("C:\\Users\\jhta\\Downloads\\11.zip");
			FileOutputStream fos = new FileOutputStream("C:\\Users\\jhta\\Documents\\NateOn RemoteCall\\게임.zip");
			int n =0;
			byte b [] =new byte[100];
			while((n=fis.read(b))!=-1){
				fos. write(b,0,n);
			}
			fos.close();
			fis.close();
			System.out.println("파일복사 성공!!!");
		}catch (Exception e){
			System.out.println(e.getMessage());
		}
	}
}
